python program to count the number of characters in a string